/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import { Request, Response } from 'express';
import { responseSuccess } from '../utils';
import Mock from 'mockjs';

export default {
  'POST /Inn/uploadWuLiao': (req: Request, res: Response) => {
    const result = {
      code: 0,
      msg: 'success',
      data: 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
    };
    return res.json(result);
  },
  'POST /Inn/getWuLiaoList': (req: Request, res: Response) => {
    const data = Mock.mock({
      'list|1-10': [
        {
          'id|1-10000': 10000,
          'title|1-10000': 10000,
          pic_path: [
            'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
            'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
          ],
        },
      ],
    });
    const result = {
      code: 0,
      msg: 'success',
      data: {
        list: data.list,
        count: 99,
      },
    };
    return res.json(result);
  },
  'POST /Inn/saveWuLiao': (req: Request, res: Response) => responseSuccess(req, res),
  'POST /Inn/deleteWuLiao': (req: Request, res: Response) => responseSuccess(req, res),
};
